//dao层需要继承
package biz

type WarehouseReader interface {
	GetShopItems(shopid string) ([]*Item, error)
	GetItemWithId(id string) (*Item, error)
}

type WarehouseWriter interface {
	UpdateItemSaleStatus(itemId string, stat int) error
	AddInventory(itemId string, size int) error
	CreateItem(item *Item) error
}

type WarehouseRepo interface {
	WarehouseReader
	WarehouseWriter
}
